import 'package:ball_lion/entity/ai/ai_item_entity.dart';

class AiLmEntity {
  List<AiItemEntity>? dayMatchList;
  String? leftText;
  String? rightText;

  AiLmEntity({this.dayMatchList, this.leftText, this.rightText});

  AiLmEntity.fromJson(Map<String, dynamic> json) {
    if (json['dayMatchList'] != null) {
      dayMatchList = <AiItemEntity>[];
      json['dayMatchList'].forEach((v) {
        dayMatchList!.add(new AiItemEntity.fromJson(v));
      });
    }
    leftText = json['leftText'];
    rightText = json['rightText'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.dayMatchList != null) {
      data['dayMatchList'] = this.dayMatchList!.map((v) => v.toJson()).toList();
    }
    data['leftText'] = this.leftText;
    data['rightText'] = this.rightText;
    return data;
  }
}
